<?php

use Illuminate\Database\Seeder;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {	
    	$data= [];
    	for($i = 0; $i <= 150; $i++)
    	{
    		$temp['username'] = 'admin'.$i;
    		$temp['password'] = Crypt::encrypt('1234567');
    		$temp['email'] = str_random(5).'@qq.com';
    		$temp['phone'] = '1'.rand(10000000000,9999999999);
    		$temp['status'] = 1;
    		$temp['pic'] = '/uploads/1.jpg';
    		$temp['atime'] = time();

    		$data[]= $temp; 
    	}
        DB::table('bro_user')->insert($data);
    }
}
